allow reproducible builds of xen.gz
authorTrammell Hudson <trammell.hudson@twosigma.com>
Thu, 11 Aug 2016 11:34:59 +0000 (13:34 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 11 Aug 2016 11:34:59 +0000 (13:34 +0200)
commit1d6569a74bd6bfc87fa51ebaa85aee5723070c10
tree96c8839de189848d0da666669667475752a32baa
parente8864a4b9daabe3fe10cf905644ccdac267779de
allow reproducible builds of xen.gz

The mkelf32 executable was using an uninitialized stack buffer for
padding after the ehdr and phdr are written to the xen file, which
leads to non-deterministic bytes in the binary and prevented Xen
hypervisors from being reproducibly built.

Additionally, the file was then compressed with gzip -9 without the
-n | --no-name flag, which lead to the xen.gz file having
non-deterministric bytes (the timestamp) in the compressed file.

Signed-off-by: Trammell Hudson <trammell.hudson@twosigma.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/Makefile
xen/arch/x86/boot/mkelf32.c